# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=onesixtyone
pkgver=0.7
pkgrel=5
groups=('blackarch' 'blackarch-cracker' 'blackarch-scanner')
pkgdesc="An SNMP scanner that sends multiple SNMP requests to multiple IP addresses"
arch=('x86_64' 'aarch64')
url='http://labs.portcullis.co.uk/application/onesixtyone/'
license=('GPL')
depends=('glibc')
source=("http://labs.portcullis.co.uk/download/$pkgname-$pkgver.tar.gz")
sha512sums=('d4d4e7f21857ccc7643594e42445ba18dc3ea909070bd93cf0e2c15adc07609b0c7d247c8d095c90a80428589019ee57ba5649de39f77425dac2dc0b297dbe7f')

build() {
  cd "$pkgname-$pkgver"
  make
}

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname"

  make BINDIR="$pkgdir/usr/bin" install

  install -m 644 dict.txt "$pkgdir/usr/share/$pkgname/"
}

